
  window.element=layui.element;

$(document).ready(function () {
  var BannerLiLenght = $(".bannerSideBarWarp .bannerSideTitle").length;
  var bannerSideBarWarpHeight = $(".bannerSideBarWarp").height();
  $(".bannerSideBarWarp .bannerSideTitle").css({ "height": (bannerSideBarWarpHeight / BannerLiLenght) + "px", "line-height": (bannerSideBarWarpHeight / BannerLiLenght) + "px" });
  //banner
  var bannerSwiper = new Swiper('.bannerImgWarp', {
    effect: 'fade',
    autoplay: 2000, //可选选项，自动滑动
    pagination: '.swiper-pagination',
    paginationClickable: true,
    autoplayDisableOnInteraction: false
  });
  // banner 图跳转
  $(".bannerMain .banner li").on('click', function () {
    console.log(5)
    var url = $(this).attr("href");
    console.log(url)
    window.open(url)
  });
});
